package com.jeff.grailsstudy

class Airport {
    String name
    Integer slot
    Date termDate
    
    static constraints = {
    }
    
    static namedQueries = {
        asianAirports {
            like 'name', 'Asia%'
        }
        
        haveTenSlots {
            gt 'slot', 9
        }
    }
    
    def String toString() {
        return "${this.class}: $name - $slot"
    }
}
